package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.SuggestMapper;
import com.whq.entity.Suggest;
import com.whq.service.SuggestService;

@Service(value = "tdSuggestService")
public class SuggestServiceImpl implements SuggestService {

    @Autowired
    private SuggestMapper<Suggest>tdSuggestMapper;
    
    @Override
    public Integer insertSelective(Suggest tdSuggest) throws Exception {
           return this.tdSuggestMapper.insertSelective(tdSuggest);
        }

    @Override
    public Integer insertBatch(List<Suggest> tdSuggest) throws Exception {
           return this.tdSuggestMapper.insertBatch(tdSuggest) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdSuggestMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdSuggestMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(Suggest tdSuggest) {
           return this.tdSuggestMapper.updateByPrimaryKeySelective(tdSuggest);
    }

    @Override
    public Suggest findById(Object id) {
           return (Suggest) this.tdSuggestMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Suggest> selectByCondition(Suggest tdSuggest) {
           return (List<Suggest>) this.tdSuggestMapper.selectByCondition(tdSuggest);
    }

    @Override
    public Integer selectCountByCondition(Suggest tdSuggest) {
           return  this.tdSuggestMapper.selectCountByCondition(tdSuggest);
    }

}
